package stu.sup.entity;

import java.io.Serializable;

public class UserLogin implements Serializable {
    private Integer id;

    private String password;

    private String username;

    private Integer status;


    public UserLogin() {
    }

    public UserLogin( String password, String username, Integer status) {

        this.password = password;
        this.username = username;
        this.status = status;
    }


    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }


    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("UserLogin{");
        sb.append("id=").append(id);
        sb.append(", password='").append(password).append('\'');
        sb.append(", username='").append(username).append('\'');
        sb.append(", starus=").append(status);
        sb.append('}');
        return sb.toString();
    }
}